package com.test.main;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class App {

    public static void main(String[] args) throws IOException {
        System.out.println("first code ! ");

        Properties props = new Properties();
        InputStream inputStream= App.class.getClassLoader().getResourceAsStream("application.properties");
        props.load(inputStream);
        String value = props.getProperty("test_p1");
        System.out.println("test_p1" + "=" + value);
        String value2 = props.getProperty("test_p2");
        System.out.println("test_p2" + "=" + value2);
        String value3 = props.getProperty("test_p3");
        System.out.println("test_p3" + "=" + value3);
        String value4 = props.getProperty("test_p4");
        System.out.println("test_p4" + "=" + value4);

    }
}
